<ul class="am-list am-text-xs">
    <?php if (isset($msgList)) foreach ($msgList as $msgObj) { ?>
        <li class="am-list-item" style="padding: 5px 0px;">
            <div class="am-g">
                <div style="padding: 5px 10px; float: left;">
                    <img class="am-circle" src="<?= $msgObj->CommentUserAvatar ?>" height="30" width="30"/>
                </div>
                <div style="overflow: hidden; zoom: 1;">
                    <div>
                        <span class="app-main-color"><?php echo $msgObj->CommentUserName ?></span>
                        <?php
                        if ($msgObj->CommentType == 1 || $msgObj->CommentType == 2) {
                            echo "<span>发表了评论</span>";
                            $goto_comment = "goto_work_show('{$msgObj->ShowId}')"; //当点击评论内容时 跳转的js
                        }

                        if ($msgObj->CommentType == 3 || $msgObj->CommentType == 4) {
                            echo "<span>回复了你的评论</span>";
                            //当点击评论内容时 跳转的js
                            $msgCommentType = $msgObj->CommentType - 2;
                            $goto_comment = "comment_show({$msgObj->CommentReplyId},{$msgCommentType},{$msgObj->ShowId})";
                        }
                        if ($msgObj->CommentType == 5 || $msgObj->CommentType == 6) {
                            echo "<span>回复@你</span>";
                            //当点击评论内容时 跳转的js
                            $msgCommentType = $msgObj->CommentType - 4;
                            $goto_comment = "comment_show({$msgObj->CommentReplyId},{$msgCommentType},{$msgObj->ShowId})";
                        }
                        ?>
                    </div>
                    <div class="am-text-xs">
                        <span class="app-gray-color"><?= $msgObj->MsgDt ?></span>
                    </div>
                </div>
            </div>
            <div onclick="<?= $goto_comment ?>" style="padding:5px 13px">
                <span class="app-black-color"><?= $msgObj->CommentText ?></span>
            </div>
            <div onclick="goto_work_show('<?= $msgObj->ShowId ?>')" class="am-g" style="background-color:#EAF8FE;">
                <div style="padding:5px; float: left;">
                    <?php
                    if ($msgObj->CommentType == 1 || $msgObj->CommentType == 3 || $msgObj->CommentType == 5)
                        $picFolder = 'works_pic';
                    else $picFolder = 'shoe_show_pic';
                    $picName = make_img_name::make_img_micro_name(explode(';', $msgObj->ShowPic, 2)[0]);
                    echo "<img src='{$CfgPara->httproot}/{$picFolder}/{$picName}' width='60' height='auto' />";
                    ?>
                </div>
                <div style="padding-top: 5px; overflow: hidden; zoom: 1;">
                    <div>
                        <span class="app-black-color"><?= $msgObj->ShowName; ?></span>
                    </div>
                    <div class="am-text-xs">
                        <span class="app-main-color"><?= $_SESSION['user_name'] ?></span>
                    </div>
                </div>
            </div>
        </li>
    <?php } ?>
</ul>
<?php
if (isset($paginateMsg)) {
    echo $paginateMsg;
} //插入分页信息
?>